import static org.mockito.Mockito.mock;
import static org.mockito.Mockito.verify;
import static org.mockito.Mockito.verifyZeroInteractions;
import static org.mockito.Mockito.when;

import org.junit.Before;
import org.junit.Test;

public class TelephoneTest {
	Communicable communicableMock;
	Connection connectionMock;
	Telephone telephone;
	
	@Before
	public void doBefore()
	{
		communicableMock = mock(Communicable.class);
		connectionMock = mock(Connection.class);
		telephone = new Telephone(communicableMock);
	}

	@Test
	public void testSpeak() {
		telephone.speak("Hola");
		verify(communicableMock).transmitVoice("Hola");
	}

	@Test
	public void testShowDisplay() {
		telephone.showDisplay("Hola");
		verify(communicableMock).printScreen("Hola");
	}
}
